import com.zhou.Person;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @JDK version used:      <JDK1.8> 32
 * @since 2021/9/18-14:32
 */
public class SpringDemoApplication {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring/beans.xml");
		Person bean = context.getBean(Person.class);
		Person bean2 = context.getBean(Person.class);
		System.out.println(bean);
		System.out.println(bean2);
		System.out.println("获取对象完成..");

	}
}
